#ifndef ROBOTCONTROLWIDGET_H
#define ROBOTCONTROLWIDGET_H

#include <QWidget>
#include <QDebug>
#include <QLabel>
#include <QPushButton>
#include <QSlider>
#include <QFrame>
#include <QButtonGroup>
#include <QGroupBox>

#include <QVBoxLayout>
#include <QHBoxLayout>

#include <QCamera>
#include <QCameraViewfinder>
#include <QCameraImageCapture>

#include "../component/sliderwithbtns.h"

//机械控制页组件
class RobotControlWidget : public QWidget
{
    Q_OBJECT
public:
    explicit RobotControlWidget(QWidget *parent = nullptr);

    void setUI();

signals:

private slots:
    void btns_con_clicked(int id);  //连接   控制组槽
    void btns_car_clicked(int id);  //小车   控制组槽
    void btns_arm_clicked(int id);  //机械臂 控制组槽

private:
    QLabel *con_status, *car_seekmode, *car_speed; //连接状态标签
    QButtonGroup *btns_con, *btns_car, *btns_arm;  //连接控制按钮组  小车控制按钮组

    QCamera *cam;
    QCameraViewfinder *view_finder;
    QCameraImageCapture *img_capcture;

};

#endif // ROBOTCONTROLWIDGET_H
